package com.google.ads;

import android.text.TextUtils;
import android.webkit.WebView;
import com.google.ads.b.c;
import com.google.ads.b.r;
import com.google.ads.b.x;
import com.google.ads.util.AdUtil;
import com.google.ads.util.ac;
import com.google.ads.util.ad;
import com.google.ads.util.d;
import com.google.ads.util.n;
import java.util.HashMap;

public class bd
  implements at
{
  private void a(HashMap paramHashMap, String paramString, ad paramad)
  {
    try
    {
      String str = (String)paramHashMap.get(paramString);
      if (!TextUtils.isEmpty(str))
        paramad.a(Integer.valueOf(str));
      return;
    }
    catch (NumberFormatException localNumberFormatException)
    {
      d.a("Could not parse \"" + paramString + "\" constant.");
    }
  }

  private void b(HashMap paramHashMap, String paramString, ad paramad)
  {
    try
    {
      String str = (String)paramHashMap.get(paramString);
      if (!TextUtils.isEmpty(str))
        paramad.a(new Long(str));
      return;
    }
    catch (NumberFormatException localNumberFormatException)
    {
      d.a("Could not parse \"" + paramString + "\" constant.");
    }
  }

  private void c(HashMap paramHashMap, String paramString, ad paramad)
  {
    String str = (String)paramHashMap.get(paramString);
    if (!TextUtils.isEmpty(str))
      paramad.a(str);
  }

  public void a(r paramr, HashMap paramHashMap, WebView paramWebView)
  {
    as localas = paramr.g();
    ar localar = (ar)((aq)localas.a.a()).a.a();
    a(paramHashMap, "min_hwa_banner", localar.a);
    a(paramHashMap, "min_hwa_overlay", localar.b);
    c(paramHashMap, "mraid_banner_path", localar.c);
    c(paramHashMap, "mraid_expanded_banner_path", localar.d);
    c(paramHashMap, "mraid_interstitial_path", localar.e);
    b(paramHashMap, "ac_max_size", localar.f);
    b(paramHashMap, "ac_padding", localar.g);
    b(paramHashMap, "ac_total_quota", localar.h);
    b(paramHashMap, "db_total_quota", localar.i);
    b(paramHashMap, "db_quota_per_origin", localar.j);
    b(paramHashMap, "db_quota_step_size", localar.k);
    c localc = paramr.j();
    if (AdUtil.a >= 11)
    {
      n.a(localc.getSettings(), localas);
      n.a(paramWebView.getSettings(), localas);
    }
    boolean bool;
    int i;
    if (!((x)localas.k.a()).a())
    {
      bool = localc.f();
      if (AdUtil.a >= ((Integer)localar.a.a()).intValue())
        break label273;
      i = 1;
      if ((i != 0) || (!bool))
        break label279;
      d.a("Re-enabling hardware acceleration for a banner after reading constants.");
      localc.c();
    }
    while (true)
    {
      localar.l.a(Boolean.valueOf(true));
      return;
      label273: i = 0;
      break;
      label279: if ((i != 0) && (!bool))
      {
        d.a("Disabling hardware acceleration for a banner after reading constants.");
        localc.b();
      }
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.google.ads.bd
 * JD-Core Version:    0.6.2
 */